// 
// 
// 

#include "ioctl.h"
#define GREEN_LIGHT_IO 2
#define LOCK_READ 16	
#define LOCK_IO  10


void Green_Light_Init()
{
	pinMode(GREEN_LIGHT_IO,OUTPUT);
	Green_Light_Off();
}
void Green_Light_On()
{
	digitalWrite(GREEN_LIGHT_IO, HIGH);
}
void Green_Light_Off()
{
	digitalWrite(GREEN_LIGHT_IO, LOW);
}
void Lock_Init()
{
	pinMode(LOCK_IO,OUTPUT);
	pinMode(LOCK_READ,INPUT);
	Lock_Close();
}
void Lock_Open()
{
	digitalWrite(LOCK_IO,HIGH);
}
void Lock_Close()
{
	digitalWrite(LOCK_IO,LOW);
}
bool Lock_Check()
{
	return (bool)digitalRead(LOCK_READ);
}

